<template>
  <div>
    <el-table :data="data" stripe style="width: 100%">
      <el-table-column prop="productCategory" label="所属品类">
      </el-table-column>
      <el-table-column prop="prjCategory" label="项目类别"> </el-table-column>
      <el-table-column prop="prjNumber" label="项目编号"> </el-table-column>
      <el-table-column prop="prjName" label="项目名称"> </el-table-column>
      <el-table-column prop="projectStatus" label="项目状态"> </el-table-column>
      <el-table-column prop="prjManager" label="项目经理"> </el-table-column>
      <el-table-column prop="department" label="所属部门"> </el-table-column>
      <el-table-column label="项目计划时间">
        <template slot-scope="scope">
          {{ scope.row.prjStartDate.slice(0, 10) }} ~
          {{ scope.row.prjEndDate.slice(0, 10) }}
        </template>
      </el-table-column>
    </el-table>
  </div>
</template>

<script>
import tableData from "../assets/json/data.json";

export default {
  data() {
    return {
      data: [],
    };
  },
  mounted() {
    this.data = tableData;
  },
};
</script>

<style lang="scss" scoped></style>
